import {
	IAppViewMsgHelper,
	IContext,
	IDEDataSetViewMsg,
	IParam,
	IViewMsg,
} from '@/core/interface';

export abstract class AppViewMsgHelperBase implements IAppViewMsgHelper {
	/**
	 * 获取视图消息集合
	 *
	 * @memberof AppViewMsgHelperBase
	 */
	public getViewMsgDetails(
		tag: string,
		context?: IContext,
		viewParams?: IParam
	): Promise<any[]> {
		throw new Error('Method not implemented.');
	}

	/**
	 * 获取动态模式（静态）类型视图消息
	 *
	 * @param {IViewMsg} 动态模式（静态）类型视图消息实例
	 * @memberof AppViewMsgHelperBase
	 */
	public async getStaticViewMessage(
		detail: IViewMsg,
		context?: IContext,
		viewParams?: IParam
	): Promise<any[]> {
		throw new Error('Method not implemented.');
	}

	/**
	 * 初始化动态模式（实体数据集合）类型视图消息
	 *
	 * @param {any} tag 视图消息标识
	 * @param {any} messageService 消息服务
	 * @param {string} context
	 * @returns {Promise<any[]>}
	 * @memberof AppViewMsgHelperBase
	 */
	public async getDynamicViewMessage(
		detail: IDEDataSetViewMsg,
		context: any = {},
		viewParams: any = {},
		isloading?: boolean
	): Promise<any[]> {
		throw new Error('Method not implemented.');
	}
}
